package com.cjf.aop;

import android.Manifest;
import android.view.View;
import android.widget.Toast;

import com.cjf.aop.annotation.ApplyPermission;
import com.cjf.aop.runtime.AOPManager;

/**
 * created by cjf
 * on: 2020/3/26
 */
public class MainPresenter {

    @ApplyPermission({Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.CAMERA,
            Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.READ_PHONE_STATE,Manifest.permission.RECORD_AUDIO})
    public void handleRequestPermission(View view) {
        Toast.makeText(AOPManager.getContext(), "权限已申请", Toast.LENGTH_SHORT).show();
    }
}
